aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/invoice/[id]
Commit message (Collapse)AuthorAgeFilesLines
* invoice: a reusable bolt12 offer has no terminal paid stateAdam Soltys2026-09-222-6/+44
| | | | | | | | | | | | | | | | | | | | | A bolt12 offer is a standing payment code. CLN derives the same offer_id from the same (amount, description), so re-creating one hands back the original record, whose `received` has accumulated over the offer's whole lifetime. The invoice layout read that as "this invoice was paid" and redirected to the success screen, so reopening a long-lived offer never showed the QR and left no way to copy the lno. Treat a payment as celebratory only when it arrives while the page is open: the socket handler now passes the amount of that payment as `?paid=<amount>`, and the layout uses it in place of the lifetime total for reusable offers. Single-use invoices keep the existing logic, so a partly-paid invoice still stays on the QR rather than celebrating early. The success screen showed lifetime `received` for the same reason, which misreported a single payment to a long-lived offer; it now renders the amount the socket reported, which is already net of tip. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
* receive/invoice: build POST body from snapshot, don't mutate $derivedAdam Soltys2026-06-191-11/+12
| | | | | | | | | | | | | | The merchant receive and invoice pages mutated the $derived `invoice` proxy (setType/setAmount/setMemo) then POSTed it. Mutating a $derived and JSON.stringify-ing it serializes unreliably, so a stale type (on-chain when lightning was expected) and a stale/10x-shifted amount could leak from a prior interaction into POST /invoice (funk POS bug). Build the body as { ...$state.snapshot(invoice), ...changes } so the intended type/amount/address_type reliably win; update() takes the plain body. Front-end only. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
* redirect to paid routeAdam Soltys2025-09-091-4/+4
|
* check for user in invoice routeAdam Soltys2025-09-092-11/+13
|
* fix autopay with tip logicAdam Soltys2025-08-261-4/+3
|
* set tipAdam Soltys2025-08-202-23/+17
|
* handle null tipsAdam Soltys2025-07-192-6/+21
|
* prompt for tip for auto paysAdam Soltys2025-07-192-23/+18
|
* fix pin issueAdam Soltys2025-07-162-8/+22
|
* user onboardingAdam Soltys2025-07-101-13/+15
|
* auto payAdam Soltys2025-07-081-2/+19
|
* invoice typesAdam Soltys2025-01-231-0/+1
|
* invoice type selectionAdam Soltys2025-01-151-8/+26
|
* nostr sign inAdam Soltys2025-01-031-2/+9
|
* iconify noobserverAdam Soltys2024-12-302-2/+2
|
* fix sendmaxAdam Soltys2024-12-221-2/+0
|
* set memoAdam Soltys2024-12-223-34/+43
|
* pass locale aroundAdam Soltys2024-12-121-6/+16
|
* fix checkmark when not logged inAdam Soltys2024-12-121-1/+1
|
* fix tip currencyAdam Soltys2024-12-121-2/+2
|
* fix ecash rateAdam Soltys2024-12-051-1/+1
|
* cached ratesAdam Soltys2024-12-053-45/+13
|
* cache qrsAdam Soltys2024-12-031-3/+1
|
* try service worker againAdam Soltys2024-11-292-2/+1
|
* numpad fixesAdam Soltys2024-11-281-1/+13
|
* fix untrackAdam Soltys2024-11-281-1/+0
|
* currency localeAdam Soltys2024-11-281-1/+3
|
* warningsAdam Soltys2024-11-261-2/+1
|
* warningsAdam Soltys2024-11-261-25/+12
|
* bip21 and socket fixesAdam Soltys2024-11-262-117/+15
|
* fix amount promptAdam Soltys2024-11-251-3/+8
|
* payment amount helpersAdam Soltys2024-11-142-81/+20
|
* amount componentAdam Soltys2024-11-142-11/+16
|
* lightning boltAdam Soltys2024-11-122-2/+2
|
* remember fiat settingAdam Soltys2024-11-111-2/+1
|
* default light themeAdam Soltys2024-11-081-1/+1
|
* clean up internal send dialogAdam Soltys2024-11-081-1/+0
|
* fix invoice variablesAdam Soltys2024-11-081-12/+6
|
* fix tip dialogAdam Soltys2024-11-081-47/+20
|
* fix set amountAdam Soltys2024-11-082-2/+0
|
* svelte 5 fixupsAdam Soltys2024-11-082-44/+20
|
* svelte 5Adam Soltys2024-11-085-83/+120
|
* theme cookieAdam Soltys2024-11-062-6/+10
|
* bind valuesAdam Soltys2024-11-051-24/+24
|
* dark stylesAdam Soltys2024-11-053-101/+29
|
* dark stylesAdam Soltys2024-11-041-60/+51
|
* dark stylesAdam Soltys2024-11-042-117/+22
|
* buttons and iconsAdam Soltys2024-11-031-16/+16
|
* focus start buttonAdam Soltys2024-11-011-6/+15
|
* biomeAdam Soltys2024-10-314-39/+39
|